package main

import "fmt"

type person1 struct {
	name  string
	age   int
	hobby []string
	map1  map[string]string
}

func main() {
	var p person1
	p.name = "张三"
	p.age = 16
	p.hobby = make([]string, 3, 6)
	p.hobby[0] = "吃饭"
	p.hobby[1] = "睡觉"
	p.hobby[2] = "敲代码"
	p.map1 = make(map[string]string)
	p.map1["address"] = "河南省驻马店市"
	p.map1["add_detail"] = "平舆县双庙乡"
	p.map1["phone"] = "15641412128"
	fmt.Printf("%#v\n", p)
	fmt.Printf("%v\n", p.hobby)

}
